package com.gotop.common.enums.error;

/**
 * @program: cem
 * @description:
 * @author: superfish
 * @create: 2020-12-30 12:04
 **/
public enum EnumClientError {

    ERROR_CODE1(10001, "没有此应用，请核对clientid"),
    ERROR_CODE2(10002, "clientSecret错误，请核对是否填写正确"),
    ERROR_CODE3(10003, "请设置ip白名单"),
    ERROR_CODE4(10004, "请求ip不在白名单内，请确认后重试"),
    ERROR_CODE5(10005, "授权类型不包含此类型，请确认后重试"),
    ERROR_CODE6(10006, "应用未开启，请开启后重试"),
    ERROR_CODE7(10007, "应用已存在，请不要重复创建");

    private int code;
    private String msg;

    EnumClientError(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
